package com.freewater.library.lending.reader.infrastructure.model;

import com.freewater.library.common.domain.Nullable;
import com.freewater.library.lending.reader.model.CheckedOutOverdueBook;
import com.freewater.library.lending.reader.model.OccupiedBook;
import com.freewater.library.lending.reader.model.Reader;
import lombok.Getter;
import lombok.Setter;

import java.util.Set;

@Getter
@Setter
public class ReaderImpl extends Reader {

    private int version;

    public ReaderImpl(Long id, String name) {
        super(id, name);
    }

    public ReaderImpl(Long id,
                      String name,
                      boolean suspended,
                      @Nullable Set<OccupiedBook> occupiedBooks,
                      @Nullable Set<CheckedOutOverdueBook> checkedOutOverdueBooks) {
        super(id, name, suspended, occupiedBooks, checkedOutOverdueBooks);
    }
}
